#include<time.h>

class Timer
{
	time_t m_xStartTime;
	time_t m_xStopTime;

public:
	Timer()
	{
	}
	
	void start()
	{
		time(&m_xStartTime);
	}

	void stop()
	{
		time(&m_xStopTime);
	}

	double getElapsedTime()
	{
		double nTime = difftime(m_xStopTime, m_xStartTime);
		return nTime;
	}

};